//
//  photoCollectionViewCell.m
//  movie
//
//  Created by 李丹阳 on 15/7/23.
//  Copyright (c) 2015年 李丹阳. All rights reserved.
//

#import "photoCollectionViewCell.h"

@implementation photoCollectionViewCell

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        scroll = [[photoScrollView alloc]initWithFrame:self.bounds];
        scroll.pagingEnabled = YES;
        scroll.tag = 100;
        [self.contentView addSubview:scroll];
    }
    return self;
}

- (void)setImageUrlStr:(NSString *)imageUrlStr{
    _imageUrlStr = imageUrlStr;
//    scroll.imageUrlStr = _imageUrlStr;
    [self setNeedsLayout];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    scroll.imageUrlStr = _imageUrlStr;
    [self.contentView addSubview:scroll];
    scroll.tag = 100;

    
}



@end
